package com.huluobo.report

import com.huluobo.lib_base.Res
import com.huluobo.lib_http.Const
import com.huluobo.report.entity.ReportEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

/**
 *  Created by LC on 2025/6/26.
 */
interface ApiService {
    @GET(Const.URL_GET_ALL_REPORT)
    fun getAllReport(): Flow<Res<ReportEntity>>

    @POST(Const.URL_COMMIT_REPORT)
    fun commitReport(@Body body: RequestBody): Flow<Res<Any>>
}